package common.consts;

/**
 * Created by aceyin on 15/6/25.
 */
public enum Gender {
    MALE, FEMALE;

    public static boolean isInvalid(String gender) {
        if (gender == null) {
            return true;
        }
        return !MALE.name().equalsIgnoreCase(gender) && !FEMALE.name().equalsIgnoreCase(gender);
    }
}
